package service

import (
	"goTrain/go-training/stream-producer/api/signal/service/v1"
	"goTrain/go-training/stream-producer/app/signal/service/internal/biz"

	"github.com/go-kratos/kratos/v2/log"
	"github.com/google/wire"
)

var ProviderSet = wire.NewSet(NewSignalService)

type SignalService struct {
	v1.UnimplementedSignalServer

	sc *biz.SignalUseCase
	log *log.Helper
}

func NewSignalService(sc *biz.SignalUseCase, logger log.Logger) *SignalService {
	return &SignalService{
		sc: sc,
		log: log.NewHelper(log.With(logger)),
	}
}
